﻿
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Windows.Forms;
 
using Net.http;

namespace print
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
    
        static void Main()
        {

            Process[] processes = Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName);
            if( processes.Length > 1 ) {
                Console.WriteLine("无法重复启动");
                Console.ReadLine();
            } else {
                NetConfig.Port = 12137;
                HttpApiFacade.initTypes(-1,false);
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                Application.Run(new FrmServer());
            }
          
        }
    }
}
